import request from '@/utils/request'
/**
 *
 * 处方药定制
 *
 */

// 获取用药人列表
export function MedicalPatientList(data) {
  return request({
    url: '/MedicalPatient/index',
    method: 'post',
    data
  })
}

// 添加/编辑用药人
export function MedicalPatientSave(data) {
  return request({
    url: '/MedicalPatient/save',
    method: 'post',
    data
  })
}

// 删除用药人
export function MedicalPatientDelete(data) {
  return request({
    url: '/MedicalPatient/delete',
    method: 'post',
    data
  })
}

// 保存已确诊疾病
export function MedicalPatientsaveDisease(data) {
  return request({
    url: '/MedicalPatient/save_disease',
    method: 'post',
    data
  })
}

// 获取处方笺
export function PrescriptionDetail(data) {
  return request({
    url: '/Prescription/get_detail',
    method: 'post',
    data
  })
}
// 获取问诊记录
export function ConsultationLog(data) {
  return request({
    url: '/Consultation/get_log',
    method: 'post',
    data
  })
}
// 删除问诊记录
export function ConsultationDelete(data) {
  return request({
    url: '/Consultation/delete_log',
    method: 'post',
    data
  })
}
